<template>
  <div class="company">
    <header class="shadow p-3 bg-white rounded" >
      <div class="container">
        <h1>
          <router-link to="">集团数字化智能管理平台</router-link>
        </h1>
      </div>
    </header>
    <div class="content ">
      <div class="container">
        <ul class="pl-0 row">
          <li class="text-center col-2" >
            <router-link to="" @click.native="goNext('书吧',1, 3)">书吧</router-link>
          </li>
          <li class="text-center col-2" >
            <router-link to="" @click.native="goNext('食堂',2, 2.5)">食堂</router-link>
          </li>
          <li class="text-center col-2" >
            <router-link to="" @click.native="goNext('峨眉山餐厅',3, 3)">峨眉山餐厅</router-link>
          </li>
          <li class="text-center col-2" >
            <router-link to="" @click.native="goNext('农场养殖',4, 3)">农场养殖</router-link>
          </li>
          <li class="text-center col-2" >
            <router-link to="" @click.native="goNext('农场种植',5, 3)">农场种植</router-link>
          </li>
          <li class="text-center col-2" >
            <router-link to="" @click.native="goNext('农场宾馆',6, 3)">农场宾馆</router-link>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
  import axios from 'axios'
  export default {
    name: "nav2",
    data () {
      return {
        companyList:[],
        allUserCount: 0
      }
    },
    methods: {
      goNext (company, orgid, userCount) {
        window.sessionStorage.setItem('company',company)
        window.sessionStorage.setItem('orgid',orgid)
        window.sessionStorage.setItem('userCount',userCount)
        this.$router.push('/homeIndex')
      }
    }
  }
</script>

<style scoped>
  .company{
    height: 100%;
  }
  .company header{
    background-image: linear-gradient(to right, #005bea ,#00c6fb);
    background-size: 100% auto;
    color: white;
    height: 14%;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 99;
  }
  .company header h1 a{
    font-size: 30px;
    letter-spacing: 3px;
    text-shadow: 5px 5px 10px black;
    color: white;
    text-decoration: none;
  }
  .company .content{
    height: 100%;
    /*background: url("~@/assets/img/bg4.png") no-repeat;*/
    background-size: 100% auto;
    background-position: 0 -100px;
  }
  .company .content{
    padding-top: 2%;
  }
  .company .content ul{
    display: flex;
    flex-direction: row;
    padding-top: 50px;
    justify-content: start;
  }
  .company .content ul li{
    list-style: none;
    display: inline;
  }
  .company .content ul li a{
    color: #4e555b;
    display: inline-block;
    margin: 20px;
    border-radius: 10px;
    width: 140px;
    height: 110px;
    font-size: 24px;
    font-weight: bold;
    border: 4px solid #7abaff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
  }
  .company .content ul li a div{
    font-size: 16px;
    font-weight: normal;
    color: #95999c;
    font-weight: bold;

  }
</style>
